/**
 * Created by IntelliJ IDEA.
 * User: LiuWenqi
 * Date: 2017-12-08
 * Time: 17:16
 * Description:
 */
package com.example.layui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/structure")
public class StructureController {
    @RequestMapping(value = "/toStructure")
    public String toStructure() {
        return "structure/structure2";
    }

    @RequestMapping(value = "/toStructure2")
    public String toStructure2() {
        return "demo";
    }

    @RequestMapping("/toUser")
    public String listAll() {
        return "structure/usermanager";
    }

    @RequestMapping("/listUserByStructure")
    @ResponseBody
    public String listUserByStructure(Integer limit, Integer page, Integer sid) {
        String str = "{\n" +
                "  \"total\": 100,\n" +
                "  \"rows\": [\n" +
                "    {\n" +
                "      \"id\": 10000,\n" +
                "      \"username\": \"user-0\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-0\",\n" +
                "      \"sign\": \"签名-0\",\n" +
                "      \"experience\": 255,\n" +
                "      \"logins\": 24,\n" +
                "      \"wealth\": 82830700,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 57\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10001,\n" +
                "      \"username\": \"user-1\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-1\",\n" +
                "      \"sign\": \"签名-1\",\n" +
                "      \"experience\": 884,\n" +
                "      \"logins\": 58,\n" +
                "      \"wealth\": 64928690,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 27\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10002,\n" +
                "      \"username\": \"user-2\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-2\",\n" +
                "      \"sign\": \"签名-2\",\n" +
                "      \"experience\": 650,\n" +
                "      \"logins\": 77,\n" +
                "      \"wealth\": 6298078,\n" +
                "      \"classify\": \"酱油\",\n" +
                "      \"score\": 31\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10003,\n" +
                "      \"username\": \"user-3\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-3\",\n" +
                "      \"sign\": \"签名-3\",\n" +
                "      \"experience\": 362,\n" +
                "      \"logins\": 157,\n" +
                "      \"wealth\": 37117017,\n" +
                "      \"classify\": \"诗人\",\n" +
                "      \"score\": 68\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10004,\n" +
                "      \"username\": \"user-4\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-4\",\n" +
                "      \"sign\": \"签名-4\",\n" +
                "      \"experience\": 807,\n" +
                "      \"logins\": 51,\n" +
                "      \"wealth\": 76263262,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 6\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10005,\n" +
                "      \"username\": \"user-5\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-5\",\n" +
                "      \"sign\": \"签名-5\",\n" +
                "      \"experience\": 173,\n" +
                "      \"logins\": 68,\n" +
                "      \"wealth\": 60344147,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 87\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10006,\n" +
                "      \"username\": \"user-6\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-6\",\n" +
                "      \"sign\": \"签名-6\",\n" +
                "      \"experience\": 982,\n" +
                "      \"logins\": 37,\n" +
                "      \"wealth\": 57768166,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 34\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10007,\n" +
                "      \"username\": \"user-7\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-7\",\n" +
                "      \"sign\": \"签名-7\",\n" +
                "      \"experience\": 727,\n" +
                "      \"logins\": 150,\n" +
                "      \"wealth\": 82030578,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 28\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10008,\n" +
                "      \"username\": \"user-8\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-8\",\n" +
                "      \"sign\": \"签名-8\",\n" +
                "      \"experience\": 951,\n" +
                "      \"logins\": 133,\n" +
                "      \"wealth\": 16503371,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 14\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +

                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    }\n" +
                "  ]\n" +
                "}";

        return str;
    }

    @RequestMapping("/structureTree")
    @ResponseBody
    public String structureTree() {
//        String str = "[{\n" +
//                "  \"id\":1,\n" +
//                "  \"name\":\"C\",\n" +
//                "  \"size\":\"\",\n" +
//                "  \"date\":\"02/19/2010\",\n" +
//                "  \"type\":\"folder\",\n" +
//                "  \"iconCls\":\"icon-add\",\n" +
//                "  \"children\":[{\n" +
//                "    \"id\":2,\n" +
//                "    \"name\":\"Program Files\",\n" +
//                "    \"size\":\"120 MB\",\n" +
//                "    \"date\":\"03/20/2010\",\n" +
//                "    \"type\":\"folder\",\n" +
//                "  \"iconCls\":\"icon-edita\",\n" +
//                "    \"children\":[{\n" +
//                "      \"id\":21,\n" +
//                "      \"name\":\"Java\",\n" +
//                "      \"size\":\"\",\n" +
//                "      \"date\":\"01/13/2010\",\n" +
//                "      \"state\":\"closed\",\n" +
//                "      \"type\":\"folder\",\n" +
//                "      \"children\":[{\n" +
//                "        \"id\":211,\n" +
//                "        \"name\":\"java.exe\",\n" +
//                "        \"size\":\"142 KB\",\n" +
//                "        \"date\":\"01/13/2010\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":212,\n" +
//                "        \"name\":\"jawt.dll\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"01/13/2010\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      }]\n" +
//                "    },{\n" +
//                "      \"id\":22,\n" +
//                "      \"name\":\"MySQL\",\n" +
//                "      \"size\":\"\",\n" +
//                "      \"date\":\"01/13/2010\",\n" +
//                "      \"state\":\"closed\",\n" +
//                "      \"type\":\"folder\",\n" +
//                "      \"children\":[{\n" +
//                "        \"id\":221,\n" +
//                "        \"name\":\"my.ini\",\n" +
//                "        \"size\":\"10 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":222,\n" +
//                "        \"name\":\"my-huge.ini\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":223,\n" +
//                "        \"name\":\"my-large.ini\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      }]\n" +
//                "    }]\n" +
//                "  },{\n" +
//                "    \"id\":3,\n" +
//                "    \"name\":\"eclipse\",\n" +
//                "    \"size\":\"\",\n" +
//                "    \"date\":\"01/20/2010\",\n" +
//                "    \"type\":\"folder\",\n" +
//                "    \"children\":[{\n" +
//                "      \"id\":31,\n" +
//                "      \"name\":\"eclipse.exe\",\n" +
//                "      \"size\":\"56 KB\",\n" +
//                "      \"date\":\"05/19/2009\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    },{\n" +
//                "      \"id\":32,\n" +
//                "      \"name\":\"eclipse.ini\",\n" +
//                "      \"size\":\"1 KB\",\n" +
//                "      \"date\":\"04/20/2010\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    },{\n" +
//                "      \"id\":33,\n" +
//                "      \"name\":\"notice.html\",\n" +
//                "      \"size\":\"7 KB\",\n" +
//                "      \"date\":\"03/17/2005\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    }]\n" +
//                "  }]\n" +
//                "},{\n" +
//                "  \"id\":4,\n" +
//                "  \"name\":\"C\",\n" +
//                "  \"size\":\"\",\n" +
//                "  \"date\":\"02/19/2010\",\n" +
//                "  \"type\":\"folder\",\n" +
//                "  \"iconCls\":\"icon-add\",\n" +
//                "  \"children\":[{\n" +
//                "    \"id\":5,\n" +
//                "    \"name\":\"Program Files\",\n" +
//                "    \"size\":\"120 MB\",\n" +
//                "    \"date\":\"03/20/2010\",\n" +
//                "    \"type\":\"folder\",\n" +
//                "  \"iconCls\":\"icon-edita\",\n" +
//                "    \"children\":[{\n" +
//                "      \"id\":51,\n" +
//                "      \"name\":\"Java\",\n" +
//                "      \"size\":\"\",\n" +
//                "      \"date\":\"01/13/2010\",\n" +
//                "      \"state\":\"closed\",\n" +
//                "      \"type\":\"folder\",\n" +
//                "      \"children\":[{\n" +
//                "        \"id\":511,\n" +
//                "        \"name\":\"java.exe\",\n" +
//                "        \"size\":\"142 KB\",\n" +
//                "        \"date\":\"01/13/2010\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":512,\n" +
//                "        \"name\":\"jawt.dll\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"01/13/2010\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      }]\n" +
//                "    },{\n" +
//                "      \"id\":62,\n" +
//                "      \"name\":\"MySQL\",\n" +
//                "      \"size\":\"\",\n" +
//                "      \"date\":\"01/13/2010\",\n" +
//                "      \"state\":\"closed\",\n" +
//                "      \"type\":\"folder\",\n" +
//                "      \"children\":[{\n" +
//                "        \"id\":621,\n" +
//                "        \"name\":\"my.ini\",\n" +
//                "        \"size\":\"10 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":622,\n" +
//                "        \"name\":\"my-huge.ini\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      },{\n" +
//                "        \"id\":623,\n" +
//                "        \"name\":\"my-large.ini\",\n" +
//                "        \"size\":\"5 KB\",\n" +
//                "        \"date\":\"02/26/2009\",\n" +
//                "        \"type\":\"pack\"\n" +
//                "      }]\n" +
//                "    }]\n" +
//                "  },{\n" +
//                "    \"id\":7,\n" +
//                "    \"name\":\"eclipse\",\n" +
//                "    \"size\":\"\",\n" +
//                "    \"date\":\"01/20/2010\",\n" +
//                "    \"type\":\"folder\",\n" +
//                "    \"children\":[{\n" +
//                "      \"id\":71,\n" +
//                "      \"name\":\"eclipse.exe\",\n" +
//                "      \"size\":\"56 KB\",\n" +
//                "      \"date\":\"05/19/2009\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    },{\n" +
//                "      \"id\":72,\n" +
//                "      \"name\":\"eclipse.ini\",\n" +
//                "      \"size\":\"1 KB\",\n" +
//                "      \"date\":\"04/20/2010\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    },{\n" +
//                "      \"id\":73,\n" +
//                "      \"name\":\"notice.html\",\n" +
//                "      \"size\":\"7 KB\",\n" +
//                "      \"date\":\"03/17/2005\",\n" +
//                "      \"type\":\"pack\"\n" +
//                "    }]\n" +
//                "  }]\n" +
//                "}]";

        return "[{    \n" +
                "    \"id\":1,    \n" +
                "    \"text\":\"Folder1\",    \n" +
                "    \"iconCls\":\"icon-save\",    \n" +
                "    \"children\":[{    \n" +
                "        \"id\":11,    \n" +
                "        \"iconCls\":\"icon-edit\",    \n" +
                "        \"text\":\"File1\",    \n" +
                "        \"checked\":true   \n" +
                "    },{    \n" +
                "        \"id\":12,    \n" +
                "        \"iconCls\":\"icon-remove\",    \n" +
                "        \"text\":\"Books\",    \n" +
                "        \"state\":\"open\",    \n" +
                "        \"attributes\":{    \n" +
                "            \"url\":\"/demo/book/abc\",    \n" +
                "            \"price\":100    \n" +
                "        },    \n" +
                "        \"children\":[{    \n" +
                "           \"id\":121,    \n" +
                "           \"iconCls\":\"icon-add\",    \n" +
                "            \"text\":\"PhotoShop\",    \n" +
                "            \"checked\":true   \n" +
                "        },{    \n" +
                "           \"id\":122,    \n" +
                "           \"iconCls\":\"icon-cut\",    \n" +
                "            \"text\":\"Sub Bookds\",    \n" +
                "            \"state\":\"open\"   \n" +
                "        }]    \n" +
                "    }]    \n" +
                "},{    \n" +
                "    \"id\":2,    \n" +
                "    \"iconCls\":\"icon-ok\",    \n" +
                "    \"text\":\"Languages\",    \n" +
                "    \"state\":\"closed\",    \n" +
                "    \"children\":[{    \n" +
                "        \"id\":21,    \n" +
                "        \"iconCls\":\"icon-no\",    \n" +
                "        \"text\":\"Java\"   \n" +
                "    },{    \n" +
                "        \"id\":22,    \n" +
                "        \"iconCls\":\"icon-cancel\",    \n" +
                "        \"text\":\"C#\"   \n" +
                "    }]    \n" +
                "}]  ";
    }

    @RequestMapping("/structureData")
    @ResponseBody
    public String structureData() {

        String str = "{\n" +
                "  \"code\": 0,\n" +
                "  \"msg\": \"\",\n" +
                "  \"count\": 100,\n" +
                "  \"data\": [\n" +
                "[{\n" +
                "  \"id\":1,\n" +
                "  \"name\":\"C\",\n" +
                "  \"size\":\"\",\n" +
                "  \"date\":\"02/19/2010\",\n" +
                "  \"type\":\"folder\",\n" +
                "},{\n" +
                "    \"id\":2,\n" +
                "    \"name\":\"Program Files\",\n" +
                "    \"size\":\"120 MB\",\n" +
                "    \"date\":\"03/20/2010\",\n" +
                "    \"type\":\"folder\",\n" +
                "},{\n" +
                "      \"id\":21,\n" +
                "      \"name\":\"Java\",\n" +
                "      \"size\":\"\",\n" +
                "      \"date\":\"01/13/2010\",\n" +
                "      \"state\":\"closed\",\n" +
                "      \"type\":\"folder\"" +
                "},{\n" +
                "        \"id\":211,\n" +
                "        \"name\":\"java.exe\",\n" +
                "        \"size\":\"142 KB\",\n" +
                "        \"date\":\"01/13/2010\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":212,\n" +
                "        \"name\":\"jawt.dll\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"01/13/2010\",\n" +
                "        \"type\":\"pack\"\n" +
                "    },{\n" +
                "      \"id\":22,\n" +
                "      \"name\":\"MySQL\",\n" +
                "      \"size\":\"\",\n" +
                "      \"date\":\"01/13/2010\",\n" +
                "      \"state\":\"closed\",\n" +
                "      \"type\":\"folder\"" +
                "},{\n" +
                "        \"id\":221,\n" +
                "        \"name\":\"my.ini\",\n" +
                "        \"size\":\"10 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":222,\n" +
                "        \"name\":\"my-huge.ini\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":223,\n" +
                "        \"name\":\"my-large.ini\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "   },{\n" +
                "    \"id\":3,\n" +
                "    \"name\":\"eclipse\",\n" +
                "    \"size\":\"\",\n" +
                "    \"date\":\"01/20/2010\",\n" +
                "    \"type\":\"folder\"" +
                "   },{\n" +
                "      \"id\":31,\n" +
                "      \"name\":\"eclipse.exe\",\n" +
                "      \"size\":\"56 KB\",\n" +
                "      \"date\":\"05/19/2009\",\n" +
                "      \"type\":\"pack\"\n" +
                "    },{\n" +
                "      \"id\":32,\n" +
                "      \"name\":\"eclipse.ini\",\n" +
                "      \"size\":\"1 KB\",\n" +
                "      \"date\":\"04/20/2010\",\n" +
                "      \"type\":\"pack\"\n" +
                "    },{\n" +
                "      \"id\":33,\n" +
                "      \"name\":\"notice.html\",\n" +
                "      \"size\":\"7 KB\",\n" +
                "      \"date\":\"03/17/2005\",\n" +
                "      \"type\":\"pack\"\n" +
                "}" +
                "]" +
                "}";

        return str;
    }

    @RequestMapping("/resourceTree")
    @ResponseBody
    public String resourceTree() {
        String str = "[{\n" +
                "  \"id\":1,\n" +
                "  \"name\":\"首页\",\n" +
                "  \"resource\":\"ds\",\n" +
                "  \"date\":\"02/19/2010\",\n" +
                "  \"type\":\"folder\",\n" +
                "  \"iconCls\":\"\",\n" +
                "  \"children\":[{\n" +
                "    \"id\":2,\n" +
                "    \"name\":\"Program Files\",\n" +
                "    \"size\":\"120 MB\",\n" +
                "    \"date\":\"03/20/2010\",\n" +
                "    \"type\":\"folder\",\n" +
                "  \"iconCls\":\"\",\n" +
                "    \"children\":[{\n" +
                "      \"id\":21,\n" +
                "      \"name\":\"Java\",\n" +
                "      \"size\":\"\",\n" +
                "      \"date\":\"01/13/2010\",\n" +
                "      \"state\":\"closed\",\n" +
                "      \"type\":\"folder\",\n" +
                "      \"children\":[{\n" +
                "        \"id\":211,\n" +
                "        \"name\":\"java.exe\",\n" +
                "        \"size\":\"142 KB\",\n" +
                "        \"date\":\"01/13/2010\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":212,\n" +
                "        \"name\":\"jawt.dll\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"01/13/2010\",\n" +
                "        \"type\":\"pack\"\n" +
                "      }]\n" +
                "    },{\n" +
                "      \"id\":22,\n" +
                "      \"name\":\"MySQL\",\n" +
                "      \"size\":\"\",\n" +
                "      \"date\":\"01/13/2010\",\n" +
                "      \"state\":\"closed\",\n" +
                "      \"type\":\"folder\",\n" +
                "      \"children\":[{\n" +
                "        \"id\":221,\n" +
                "        \"name\":\"my.ini\",\n" +
                "        \"size\":\"10 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":222,\n" +
                "        \"name\":\"my-huge.ini\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "      },{\n" +
                "        \"id\":223,\n" +
                "        \"name\":\"my-large.ini\",\n" +
                "        \"size\":\"5 KB\",\n" +
                "        \"date\":\"02/26/2009\",\n" +
                "        \"type\":\"pack\"\n" +
                "      }]\n" +
                "    }]\n" +
                "  },{\n" +
                "    \"id\":3,\n" +
                "    \"name\":\"eclipse\",\n" +
                "    \"size\":\"\",\n" +
                "    \"date\":\"01/20/2010\",\n" +
                "    \"type\":\"folder\",\n" +
                "    \"children\":[{\n" +
                "      \"id\":31,\n" +
                "      \"name\":\"eclipse.exe\",\n" +
                "      \"size\":\"56 KB\",\n" +
                "      \"date\":\"05/19/2009\",\n" +
                "      \"type\":\"pack\"\n" +
                "    },{\n" +
                "      \"id\":32,\n" +
                "      \"name\":\"eclipse.ini\",\n" +
                "      \"size\":\"1 KB\",\n" +
                "      \"date\":\"04/20/2010\",\n" +
                "      \"type\":\"pack\"\n" +
                "    },{\n" +
                "      \"id\":33,\n" +
                "      \"name\":\"notice.html\",\n" +
                "      \"size\":\"7 KB\",\n" +
                "      \"date\":\"03/17/2005\",\n" +
                "      \"type\":\"pack\"\n" +
                "    }]\n" +
                "  }]\n" +
                "}]";

        return str;
    }

}

